package cn.itcast.springbook.service;

import cn.itcast.springbook.mapper.UserMapper;
import cn.itcast.springbook.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

/**
 * @author 21195
 * @version v1.0
 * @package cn.itcast.springbook.service
 * @description:
 * @date 2019/6/13 17:27
 **/
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id){
        //调用通用mapper的查询方法
        //修改日志
        //2222222222222222222222222
        return userMapper.selectByPrimaryKey(id);
    }
}
